#ifndef _CDROP_H_
#define _CDROP_H_

#include "CBase.h"
#include "..\\Messaging\IListener.h"

class CDrop : public CBase, public IListener
{
private:
	float	m_fRotation;
	float	m_fScale;

	// Asset IDs
	int		m_nPistolAmmoID;
	int		m_nShotAmmoID;
	int		m_nRocketAmmoID;
	int		m_nHealthID;
	int		m_nExGrenadeID;
	int		m_nSpeedID;
	int		m_nFireRateID;
	int		m_nMoneyID;
	int		m_nPickupType; // What type of pickup is this?


public:
	enum dropType { FW_GRENADE, HEALTH, PISTOL, SHOTGUN, 
					ROCKET, SPEED, FIRE_RATE ,MONEY, MAX_UPGRADE };

	CDrop(void);
	~CDrop(void);

	int GetDropType() { return m_nPickupType; }
	void SetPickupType(int nType) { m_nPickupType = nType; }

	void Update(float fElapsedTime);
	void Render(void);

	RECT GetCollisionRect(void);

	//bool CheckCollision(IBaseInterface* pBase);
	void HandleEvent(CEvent* pEvnt);
};

#endif